//2.
public class Date {
    public int year;
    public int month;
    public int day;

    public void setDate(int year,int month,int day){//(Date this,int year,int month,int day)
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public void func(){
        this.printDate();
    }
    public void printDate(){
        System.out.println(this.year + "年" + this.month + "月" +this.day + "日");
    }
}
